﻿using System;
using Codeflows;
using System.Threading.Tasks;
using Codeflows.Results;

namespace CodeflowsTests.Scenarios
{
    public class AsyncCodeflowThrowingException : Codeflow
    {
        public Task<Result> Start()
        {
            return Task.Factory.StartNew<Result>(() =>
                {
                    throw new Exception("Unhandled exception.");
                });
        }
    }
}
